<{strip}>
<div class="wrap">
    <div id="footer" class="clear"> <span style="float:right;margin: 35px 230px 0 0;"><script src="http://s25.cnzz.com/stat.php?id=4592592&web_id=4592592&show=pic" language="JavaScript"></script>
        </span> <span><a href="http://www.gy78.org"> 上海理工大学光仪78级同学会 </a> &nbsp;&nbsp;&nbsp; 本站使用<a href="http://www.speedphp.com" target="_blank">SpeedPHP</a> 3.18引擎&nbsp;&nbsp;&nbsp; <a href="http://www.miibeian.gov.cn" target="_blank">苏ICP备12060067号</a></span> </div>
</div>
<script type="text/javascript" src="/resources/scripts/jquery.blockUI.js"></script>
<{strip}>
<style type="text/css" >
    #loginbox{
        width:400px;
        height:230px;
        background:url('/template/front/images/topbg.jpg');
        border:10px  solid  #999;
        display:none;
    }
    #loginbox p{
        font-size:14px;
        height:30px;
        line-height:30px;
    }
    #loginbox .close{
        float:right;
        font-size:12px;
        padding:0;
    }

    #loginbox .caption{
        font-size:18px;
        font-weight:bold;
        height:40px;
        line-height:40px;
        margin-top:30px;
    }

    #loginbox .btn{
        background:url('/template/front/images/abg.png');
        font-size:16px;
        width:63px;
        height:37px;
        line-height:37px;
        margin:3px 40px 0 0;
        float:right;
    }



</style>
<div id="loginbox">
    <span class="close" ><a href="#" onclick="$.unblockUI();return false;">关闭</a></span>
    <div class="caption">光仪78同学会登录</div>
    <p>用户名：<input type="text" id="username"  value=""/></p>
    <p>密　码：<input type="password" id="password"  value=""/></p>
    <p><input type="checkbox" id="remember"  checked value="1"/>下次自动登录</p>
    <p id="showerror"></p>
    <span class="btn"><a href="#" onclick="$.unblockUI();return false;">取消</a></span> <span class="btn"><a href="#" onclick="return loginsubmit(); ">登录</a></span>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        $(".userlogin").bind('click',function(){
            userlogin();
        });
        function userlogin(){
            $.blockUI({
                message:$("#loginbox"),
                overlayCSS:  {
                    backgroundColor: '#000',
                    opacity:         0.2
                },
                css: {
                    width:'400px',
                    border: 'none',
                    padding: '0px',
                }});
            return false;
        };
    } );
    function loginsubmit(){
        $("#showerror").html('');
        if ($("#username").val()=="")
        {	   alert("用户名不能为空！");
            $("#username").focus();
            return false;
        }
        if ($("#password").val()=="")
        {	   alert("密码不能为空！");
            $("#password").focus();
            return false;
        }
        $.post("<{spUrl c=main a=login}>",
        {
            'username':$("#username").val(),
            'password':$("#password").val(),
			'remember':$("#remember").val()
        },
        function(e){
            if (e.msg=='OK')
            {
                window.location.href='/';

            }
            else
            {
                $("#showerror").html('用户名或密码错误！');
            }

        },'json'
    ) ;

    }
</script>	 <{/strip}>